import request from '@/utils/request'

// 查询课程学员列表
export function listCurriculumStudent(query) {
  return request({
    url: '/jiaopei/curriculumStudent/list',
    method: 'get',
    params: query
  })
}

// 查询课程学员详细
export function getCurriculumStudent(id) {
  return request({
    url: '/jiaopei/curriculumStudent/' + id,
    method: 'get'
  })
}

// 新增课程学员
export function addCurriculumStudent(data) {
  return request({
    url: '/jiaopei/curriculumStudent',
    method: 'post',
    data: data
  })
}

// 修改课程学员
export function updateCurriculumStudent(data) {
  return request({
    url: '/jiaopei/curriculumStudent',
    method: 'put',
    data: data
  })
}

// 删除课程学员
export function delCurriculumStudent(id) {
  return request({
    url: '/jiaopei/curriculumStudent/' + id,
    method: 'delete'
  })
}
